package cn.itcast.erp.dao.mapper;

import cn.itcast.erp.entity.Returnorderdetail;
import cn.itcast.erp.entity.Returnorders;

import java.util.List;

/**
 * 采购退货详情Mapper接口
 *
 * @author 崔凯铭, 罗宇航
 * @date 2019/6/12
 */

public interface OrderDetailReturnMapper {
    //添加订单详情
    int insertOrderDetail(Returnorderdetail returnorderdetail);

    //查询订单商品详情
    List<Returnorderdetail> findOrderDetail(Returnorders returnorders);

    //通过uuid查询当前订单详情
    Returnorderdetail findOrderDetailByUuid(Returnorderdetail returnorderdetail);

    //修改订单详情
    int updateOrderDetail(Returnorderdetail returnorderdetail);

    //判断订单详情是否全部入库
    boolean isInStore(Long ordersuuid);
}
